﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WeatherStationSys.Interface.Scheduler;

namespace WeatherStationSys.Interface
{
    /// <summary>
    /// 部件工厂
    /// </summary>
    public abstract class StationTookit
    {
        /// <summary>
        /// 创建温度
        /// </summary>
        /// <returns></returns>
        public abstract AbstractTemperatureSensor MakeTemperature();

        /// <summary>
        /// 创建气压
        /// </summary>
        /// <returns></returns>
        public abstract AbstractBarometricPressureSensor MakeBarometricPressure();

        /// <summary>
        /// 得到调度器
        /// </summary>
        /// <returns></returns>
        public abstract IAlarmClock GetAlarmClock();

        /// <summary>
        /// 得到数据持久化
        /// </summary>
        /// <returns></returns>
        public abstract IPersistent GetPersistent();
    }
}
